# 8.12
def add_food(*food_types):
    for food_type in food_types:
        print(f'顾客点的三明治需要{food_type}')
add_food('1', '2', '3')
add_food('1')

# 8.13
def build_profile(first, last, **user_info):
    """创建⼀个字典，其中包含我们知道的有关⽤户的⼀切"""
    user_info['first_name'] = first
    user_info['last_name'] = last
    return user_info
user_profile = build_profile('x', 'sj',
location='china',
field='math')
print(user_profile)

# 8.14
def make_car(manufacturer, model, **car_messages):
    car_messages['manufacturer_name'] = manufacturer
    car_messages['model_name'] = model
    return car_messages
car_message = make_car('subaru', 'outback', color='blue', tow_package=True)
print(car_message)